/* 生态学院样式 */
.bar-box {
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;

  .bar-left,
  .bar-right {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    height: 100%;

    img {
      width: 1.45rem;
      height: 1.45rem;
    }

    a {
      margin: 0 0.5rem;
      color: #5f646e;
    }
  }

  .searchs {
    flex: 1;
    margin: 0 0.5rem;
  }

  .bar-right img {
    margin-right: 0.5rem;
  }
}

.school-container {
  background-color: #fff;

  .buttons-tab {
    background-color: #EFEFF4;

    .button {
      span {
        padding-bottom: 0.2rem;
        border-bottom: 1px solid transparent;
      }
    }

    .button.active {
      border-color: transparent;

      span {
        border-bottom-color: #0894ec;
      }
    }
  }

  .tab-nav {
    display: -webkit-flex;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 4%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99;
    a {
      // width: auto;
      text-align: left;
      padding: 0;
    }
  }
  
  .banner {
    width: 100%;
    position: relative;
    display: none;
    /* swiper */
    .myswiper {
      box-sizing: border-box;
      width: 100%;
      height: 11rem;
      padding: 0;
  
      .swiper-slide {
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
    .search-banner {
      position: absolute;
      top: 0;
      left: 0;
      padding: 0.5rem 2rem;
      width: 100%;
      z-index: 88;
    }
  }
  .container {
    box-sizing: border-box;
    padding: 0 0.75rem;
    overflow: hidden;


    .card_flex__inner {
      padding: 0.2rem 0;

      p {
        margin: 0;
      }

      .label-box {
        box-sizing: border-box;
        padding: 0.5rem 0;
        font-size: 0.75rem;

        .label {
          box-sizing: border-box;
          margin-right: 0.2rem;
          padding: 0.2rem 0.5rem;
          border-radius: 1.35rem;
          border: 1px solid #e1e1e1;

          &:nth-last-child(1) {
            margin-right: 0;
          }
        }
      }
    }

    .no-img {
      margin-left: 0;
      .item-subtitle {
        margin-top: 0.5rem;
      }
    }

    .list-block {
      margin: 0;

      ul {
        li:nth-last-child(1) {
          &::after {
            content: '';
            height: 0px;
            width: 0px;
            background: transparent;
          }
        }

        li::after {
          content: '';
          position: absolute;
          left: 0;
          bottom: 0;
          right: auto;
          top: auto;
          height: 1px;
          width: 100%;
          background-color: #e7e7e7;
          display: block;
          z-index: 15;
          -webkit-transform-origin: 50% 100%;
          transform-origin: 50% 100%;
        }

        &::before,
        &::after {
          content: '';
          height: 0px;
          width: 0px;
          background: transparent;
        }
      }

    }

    .card_box__content {
      padding-left: 0;
      color: inherit;

      .card_box__content_subtile {
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }

    .flex-postiton {
      flex-direction: row-reverse;

      .item-inner {
        margin-left: 0;
      }
    }

    .desc {
      font-size: 0.75rem;
      color: #3d4145;
      overflow:hidden; 
      text-overflow:ellipsis;
      display:-webkit-box; 
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2; 
    }

    .teacher {
      .list-block {
        ul {
          li {
            &::after {
              content: '';
              height: 0;
              width: 0;
              background-color: transparent;
            }
          }
        }
      }

      .card-flex-box {
        .card_flex__inner {
          padding: 0.5rem 0;
  
          p {
            margin: 0;
          }
  
          .label-box {
            box-sizing: border-box;
            padding: 0.5rem 0;
  
            .label {
              box-sizing: border-box;
              margin-right: 0.2rem;
              padding: 0.2rem 0.5rem;
              border-radius: 1.35rem;
              border: 1px solid #e1e1e1;
  
              &:nth-last-child(1) {
                margin-right: 0;
              }
            }
          }
        }
      }
      .teacherlist {
        .teacherlist-header {
          display: flex;
          display: -webkit-flex;
          justify-content: space-between;
          align-items: center;
          a {
            color: inherit;
            font-size: 0.6rem;
          }
        }
      }
    }
  }
}

/* 名师轮播图 */
.teacher {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  .teacher-box {
    width: 100%;
    margin: 4% 0;
    padding-bottom: 4%;
    .header {
      min-height: 2.2rem;
      display: flex;
      display: -webkit-flex;
      align-items: center;
      padding: 0 4%;
    }
    
    .teacher-card {
      box-sizing: border-box;
      display: flex;
      display: -webkit-flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem;
      border: 1px solid #eee;
      border-radius: 4px;
      position: relative;
      
      img {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
      }
      .teacher-title {
        display: flex;
        display: -webkit-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0.5rem 0;
        span {
          text-align: center;
          font-size: 0.75rem;
        }
        .desc {
          overflow:hidden; 
          text-overflow:ellipsis;
          display:-webkit-box; 
          -webkit-box-orient:vertical;
          -webkit-line-clamp:2; 
        }
      }
      a.button {
        width: 90%;
      }

      .closed {
        position: absolute;
        top: 0;
        right: 0.3rem;
        color: #ccc;
      }
    }

    .swiper-wrapper {
      display: flex;
      display: -webkit-flex;
      justify-content: cenrer;
      align-items: center;
    }

    .swiper-slide {
      width: 35%;
      .lastchild {
        height: 100%;
        border: none;
        .more {
          width: 3.5rem;
          height: 3.5rem;
          border-radius: 50%; 
          background: #f6383a;
          display: flex;
          display: -webkit-flex;
          justify-content: center;
          align-items: center;
          img {
            width: 2rem;
            height: 2rem;
            border-radius: 0;
          }
        }
        p {
          color: #f6383a;
        }
      }
    }
  }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
  .list-block ul li::after {
    -webkit-transform: scaleY(.33);
    transform: scaleY(.33);
  }
}

.list-block .item-inner:after {
  content: '';
  height: 0;
  width: 0;
  background-color: transparent;
}